﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="PhysicalPopForm.aspx.cs" Inherits="App_Commons_PhysicalPopForm" %>

<%@ Register Assembly="ShpmCommon" Namespace="Shpm.System.Web.Control" TagPrefix="cc1" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>人员检索画面</title>
    <link href="../../style/style.css" rel="stylesheet" type="text/css"/>
    <script language="javascript" type="text/javascript" src="../../javascript/commons.aspx"></script>
</head>
<body style="background-image:url('../../images/bgbg2.jpg')">
    <form id="form1" runat="server">
    <div>
    <table class="table_border_bg">
        <tr>
            <td colspan="6" align="center"><b>人员检索画面<br />
                <cc1:comvalidator id="ComValidator1" runat="server" forecolor="Red" CheckItems-Capacity="4">
                    <cc1:CheckLongAttribute Code="E0322" ControlToValidator="txtPersonId">
                        <cc1:ComAbsParamsAttribute Parameter="人员编号" />
                    </cc1:CheckLongAttribute>
                </cc1:comvalidator>
            </b></td>
        </tr>
    </table>
        <table width="100%">
      <tr>
        <td>
            <table class="table_border_line">
            <tr>
			    <td align="left" colspan="4" >
			    <script language="javascript">
                                (new TitleBar('RegisterBar', '检索条件')).showBar();
                </script>
			    </td>						
		      </tr>
            </table>
		    <table class="table_border_line" style="background-color:#ffffff">
		      
		      <tr>
			    <td style="width:90px; height: 26px;">&nbsp;</td>
			    <td style="width:120px; white-space:nowrap; height: 26px;" align="left">
                    人员编号</td>
			    <td align="left" style="height: 26px">
                    &nbsp;<asp:TextBox ID="txtPersonId" runat="server"></asp:TextBox></td>
			    <td align="right" style="height: 26px">&nbsp;</td>						
		      </tr>					
		      <tr>
			    <td style="width:90px; height: 26px;">&nbsp;</td>
			    <td style="width:120px; white-space:nowrap; height: 26px;" align="left">
                    人员姓名</td>
			    <td align="left" style="height: 26px">
                    &nbsp;<asp:TextBox ID="txtName" runat="server" MaxLength="100"></asp:TextBox></td>
			    <td align="right" style="height: 26px">&nbsp;</td>						
		      </tr>	
		      <tr>
			    <td style="width:90px; height: 26px;">&nbsp;</td>
			    <td style="width:120px; white-space:nowrap; height: 26px;" align="left">
                    性别</td>
			    <td align="left" style="height: 26px">
                    &nbsp;<asp:DropDownList ID="cmbSex" runat="server" DataTextField="Content" DataValueField="DictNo">
                    </asp:DropDownList></td>
			    <td align="right" style="height: 26px">&nbsp;</td>						
		      </tr>		  
           </table></td>
      </tr>
      <tr>
        <td align="center">
          <table>
             <tr>
                <td style="width:80px; height: 24px;">
                    <asp:Button ID="btnSeach" runat="server" CssClass="button1" Text="检 索" Width="100%" OnClick="btnSeach_Click"/></td>						
             </tr>
          </table>    </td>
      </tr>
    </table>

    <br/>
    <table width="100%">
    </table>
    <table class="table_border_bg">
       <tr>
        <td>
            <asp:GridView ID="GridView1" runat="server" DataSourceID="ObjectDataSource1" AutoGenerateColumns="False" Width="100%" AllowPaging="True" CssClass="GridView_table" OnRowDataBound="GridView1_RowDataBound" OnSelectedIndexChanged="GridView1_SelectedIndexChanged">
                <Columns>
                    <asp:CommandField ButtonType="Image" HeaderText="选择" SelectImageUrl="~/images/info.gif"
                        SelectText="" ShowSelectButton="True">
                        <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" CssClass="GridView_item_center" />
                        <HeaderStyle CssClass="GridView_head_grayblue" />
                    </asp:CommandField>
                    <asp:BoundField HeaderText="人员编号" DataField="PersonId">
                        <ItemStyle CssClass="GridView_item_center" />
                        <HeaderStyle CssClass="GridView_head_grayblue" />
                    </asp:BoundField>
                    <asp:BoundField DataField="Name" HeaderText="人员姓名" >
                        <ItemStyle CssClass="GridView_item_center" />
                        <HeaderStyle CssClass="GridView_head_grayblue" />
                    </asp:BoundField>
                    <asp:BoundField DataField="Sex" HeaderText="人员性别" >
                        <ItemStyle CssClass="GridView_item_center" />
                        <HeaderStyle CssClass="GridView_head_grayblue" />
                    </asp:BoundField>
                </Columns>
                <PagerStyle BackColor="White" ForeColor="Black" HorizontalAlign="Right" />
            </asp:GridView>
        </td>
       </tr>	
      </table>
    </div>
        <asp:ObjectDataSource ID="ObjectDataSource1" runat="server" SelectMethod="FindByPerson" TypeName="Shpm.App.Input.Dao.PhyscalDao">
            <SelectParameters>
                <asp:ControlParameter ControlID="txtPersonId" DefaultValue="-1" Name="PersonId" PropertyName="Text" />
                <asp:ControlParameter ControlID="txtName" DefaultValue="-1" Name="Name" PropertyName="Text" />
                <asp:ControlParameter ControlID="cmbSex" DefaultValue="" Name="Sex" PropertyName="SelectedValue" />
            </SelectParameters>
        </asp:ObjectDataSource>
    </form>
</body>
</html>
